package com.gz.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//要求扫描com.gz.springboot包下的原生方式注入的servlet
//@ServletComponentScan(basePackages = "com.gz.springboot") //注销用第二种方式
@SpringBootApplication
public class AppMain {
    public static void main(String[] args) {
        SpringApplication.run(AppMain.class, args);
    }
}
